package com.adtech.adms.system.pojo;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts2.json.annotations.JSON;

/**
 * 角色
 * @author 门宏建 
 * @since 2011-6-8 
 * 
 * @Copyright (C) 2012 AD Tech Workshop All Right Reserved
 */
public class Role implements java.io.Serializable {


	private static final long serialVersionUID = -4880831561899220841L;
	private Long roleId;
	private String roleName;
	private String desc;

	private List<User> users = new ArrayList<User>();
	private List<Feature> features = new ArrayList<Feature>();

	@JSON(serialize=false)
	public List<User> getUsers() {
		return users;
	}

	@JSON(serialize=false)
	public List<Feature> getFeatures() {
		return features;
	}

	public void setFeatures(List<Feature> features) {
		this.features = features;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
